local storyboard = require( "storyboard" )
local scene = storyboard.newScene()

function scene:updateLevelCallback()
return function(delta)
   storyboard.gotoScene("scripts.scenes.GridTestScene", {effect = "fade",time = 200})
end
end

--Methods
function scene:createScene(event)
   logger:gameEvent("Create Test Scene")
   storyboard.removeAll()
   self.timers = {}
end
function scene:enterScene(event)
   logger:gameEvent("Enter Test Scene")
   storyboard.gotoScene("scripts.scenes.GridTestScene", {effect = "fade",time = 1000})
end

function scene:exitScene(event)
   logger:gameEvent("exit Test Scene")
end

function scene:destroyScene(event)
   logger:gameEvent("destroy Test Scene")

   for i=#self.timers,1,-1 do
      timer.cancel(self.timers[i])
      table.remove(self.timers,i)
   end

end

scene:addEventListener("createScene",scene)
scene:addEventListener("enterScene",scene)
scene:addEventListener("exitScene",scene)
scene:addEventListener("destroyScene", scene)

return scene



